#include <iostream>
#ifndef SAFE_DELETE
#define SAFE_DELETE(p) { if(p){delete(p); (p)=nullptr;} }
#endif
using namespace std;
//#include"adapter.h"
#include"multiadapter.h"
int main()
{
//    IRussiaSocket *pAdapter=new PowerAdapter();
    IRussiaSocket *pAdapter=new MyPowerAdapter();
    pAdapter->Charge();
    SAFE_DELETE(pAdapter);
    getchar();
    return 0;
}
